<template>
  <div class="shop">
    <div class="message">
      <div>
        <img :src="Shop.logo" alt="" />
      </div>
      <span>{{ Shop.name }}</span>
    </div>
    <div class="anothermessage">
      <div class="xiaoliang">
        <div>
          <span class="font-bold">{{ Shop.sells }}</span>
          <span>总销量</span>
        </div>

        <div>
          <span class="font-bold">{{ Shop.goodscount }}</span>
          <span>全部宝贝</span>
        </div>
      </div>
      <div class="pingjia">
            <div v-for="item in Shop.score"  >
                <span>{{ item.name }}</span>
                <span class="nbetter" :class="{ 'better': item.isBetter }">{{ item.score }}</span>
                <span class="nbetter" :class="{ 'better': item.isBetter }">{{item.isBetter ?'高':'低'}}</span>
            </div>

        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "DetailsBaseShop",
  props: {
    Shop: {
      type: Object,
      default() {
        return {};
      },
    },
    myspanstyle:{
        // color:showcolor
    }
  },
  methods:{

  },
  computed:{


  }
};
</script>

<style scoped>
.nbetter{
    color: green;
}
.better{
    color: red;
}
.pingjia div{
    display: flex;
    justify-content: space-between;
    line-height: 6vw;
}
.pingjia div span {
  margin-right: 2vw;
}
.font-bold {
  font-weight: bold;
  color: #778899;
}
.shop {
  border-radius: 2vw;
  padding-bottom: 8vw;
  display: grid;
}
.message {
  display: flex;
  justify-content: center;
  margin-top: 3vw;
}
.message div {
  width: 18vw;
  height: 18vw;
  border-radius: 50%;
  border: 1.5px solid #708090;
  margin-right: 6vw;
}
.message img {
  border-radius: 50%;
  width: 100%;
}
.message span {
  font-size: 6vw;
  text-align: center;
  line-height: 20vw;
}
.anothermessage {
  display: flex;
  justify-content: space-evenly;
  margin-top: 3vw;
}
.xiaoliang {
  display: flex;
  text-align: center;
  font-size: 5vw;
}
.xiaoliang div {
  display: grid;
  margin-right: 5vw;
}
</style>